﻿package mortal.game.resource.tableConfig
{
    import com.gengine.resource.*;
    import flash.utils.*;

    public class MapCutDataConfig extends Object
    {
        private var _dic:Dictionary;
        private static var _instance:MapCutDataConfig;

        public function MapCutDataConfig()
        {
            this._dic = new Dictionary();
            this.init();
            return;
        }// end function

        private function init() : void
        {
            var _loc_1:* = ConfigManager.instance.getJSONByFileName("mapCutData.json");
            this.write(_loc_1);
            return;
        }// end function

        private function write(param1:Object) : void
        {
            var _loc_2:* = undefined;
            for (_loc_2 in param1)
            {
                
                this._dic[_loc_2] = param1[_loc_2];
            }
            return;
        }// end function

        public function getMapDataJSONStr(param1:int) : String
        {
            return this._dic[param1.toString()] as String;
        }// end function

        public static function get instance() : MapCutDataConfig
        {
            if (_instance == null)
            {
                _instance = new MapCutDataConfig;
            }
            return _instance;
        }// end function

    }
}
